-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add type annotations to ProductPipeline
in build-script
#82780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This prevents possible runtime type errors and helped uncovering #82777. It also server as an improvement o documentation, as provides inferred type annotations for users of this class and callers of its methods.
@@ -137,11 +141,11 @@ def infer(self): | |||
p.get_dependencies())) | |||
|
|||
for i in range(len(inferred_pipeline_list)): | |||
pipeline = inferred_pipeline_list[i] | |||
inferred_pipeline = inferred_pipeline_list[i] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renaming pipeline
here as otherwise we essentially rebound this variable with values of different type, which I don't think plays well with type annotations
@swift-ci smoke test |
@swift-ci smoke test |
@swift-ci smoke test macos |
@swift-ci test windows |
@swift-ci build toolchain amazon linux 2 |
This prevents possible runtime type errors and helped uncovering #82777. It also server as an improvement o documentation, as provides inferred type annotations for users of this class and callers of its methods.